import request from '@/utils/request'

// 查询售前列表
export function listSale(query) {
  return request({
    url: '/weixinsys/sale/list',
    method: 'get',
    params: query
  })
}

// 查询售前详细
export function getSale(id) {
  return request({
    url: '/weixinsys/sale/' + id,
    method: 'get'
  })
}

// 新增售前
export function addSale(data) {
  return request({
    url: '/weixinsys/sale',
    method: 'post',
    data: data
  })
}

// 修改售前
export function updateSale(data) {
  return request({
    url: '/weixinsys/sale',
    method: 'put',
    data: data
  })
}

// 删除售前
export function delSale(id) {
  return request({
    url: '/weixinsys/sale/' + id,
    method: 'delete'
  })
}

// 导出售前
export function exportSale(query) {
  return request({
    url: '/weixinsys/sale/export',
    method: 'get',
    params: query
  })
}